package com._520it.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com._520it.crm.domain.Account;
import com._520it.crm.mapper.AccountMapper;
import com._520it.crm.service.IAccountService;
@Service
public class AccountServiceImpl implements IAccountService{
	@Autowired
	private AccountMapper mapper;
	public int deleteByPrimaryKey(Long id) {
		return mapper.deleteByPrimaryKey(id);
	}

	public int insert(Account record) {
		return mapper.insert(record);
	}

	public Account selectByPrimaryKey(Long id) {
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Account> selectPage(int current, int size, String name, String username, String province, String city, String bank, String subBank) {
		return mapper.selectPage(current,size, name, username, province, city, bank, subBank);
	}



	public List<Account> selectAll() {
		return mapper.selectAll();
	}

	public int updateByPrimaryKey(Account record) {
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public int selectPageCount(int current, int size, String name, String username, String province, String city, String bank, String subBank) {
		return mapper.selectPageCount(current,size,name,username,province,city,bank,subBank);
	}

}
